<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            padding: 50px;
            background: rgb(218, 181, 181);
        }

        #div2 {

            background: rgb(160, 116, 33);
        }

        #div3 {
            width: 100px;
            height: 100px;
            background: rgb(121, 202, 15);
        }
    </style>
</head>

<body>
    <div id="app">
        <div id="div1" @click.capture="fn1">
            <div id="div2" @click="fn2">
                <div id="div3" @click.capture="fn3"></div>
            </div>
        </div>
    </div>
    <script src="./vue.js"></script>
    <script>
        let vm = new Vue({
            el: "#app",
            data: {

            },
            methods: {
                fn1() {
                    alert(1);
                },
                fn2() {

                    alert(2);
                   
                },
                fn3() {
                    alert(3);
                }
            }
        })
    </script>
</body>

</html>